#!/usr/bin/python
# -*- coding: utf-8 -*-

import multiprocessing
import logging
import sys


def myprint(obj):
    sys.stdout.write(str(obj) + '\n')


def worker():
    myprint('Doing some work')
    sys.stdout.flush()


if __name__ == '__main__':
    multiprocessing.log_to_stderr()
    logger = multiprocessing.get_logger()
    logger.setLevel(logging.INFO)
    p = multiprocessing.Process(target=worker)
    p.start()
    p.join()
